<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			//var id=(".div").attr("id")
			//console.log(id)
			//$(".div").attr("id","2")
		//0 获取  1设置	
		//html() html代码
		//txt()  文本内容
		//val()  交互控件的值
		console.log((".div").html())
		console.log((".div").text())
		console.log((".checkbox:eq(0)").val())
		</script>
	</head>
	<body>
		<div class="div" id="1">
			第一个<span>一个</span>
		</div>
		<input type="checkbox" checked/>
		<input type="checkbox" checked="" />
		<input type="checkbox" checked="checked" />
	</body>
</html>
